import request from '@/utils/request'

// 查询地区
export function pageList(data) {
    return request({
      url: '/exam/info/pageList',
      method: 'post',
      data
    })
}

// 编辑考试配置
export function editExam(data) {
  return request({
    url: '/exam/info/edit',
    method: 'post',
    data
  })
}

// 删除考试配置
export function deleteExam(data) {
  return request({
    url: '/exam/info/delete',
    method: 'post',
    data
  })
}

// 批量删除考试配置
export function deleteBatchExam(data) {
  return request({
    url: '/exam/info/deleteBatch',
    method: 'post',
    data
  })
}

// 批量删除考试配置
export function updateBatchExam(data) {
  return request({
    url: '/exam/info/updateBatch',
    method: 'post',
    data
  })
}

//模板下载
export function exportTemplate(data) {
  return request({
    url: '/exam/info/exportTemplate',
    responseType:'blob',
    method: 'post',
    data
  })
} 

//上传考试数据
export function importData(data) {
  return request({
    url: '/exam/info/import',
    responseType:'blob',
    method: 'post',
    data
  })
} 